package com.itheima.service.OrderServiceImpl;

import com.itheima.mapper.OrderMapper;
import com.itheima.pojo.Order;
import com.itheima.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired(required=false)
    OrderMapper orderMapper;


    public List<Order> findOrderByUserName(String username) {
        return orderMapper.findOrderByUserName(username);
    }
}
